<template>
 <div class='header'>
  <div class="header-left iconfont">&#xe624;</div>
  <div class="header-input"><span class="iconfont">&#xe632;</span><input type="input" placeholder="请输入要查找的东西" value=""></div>
  <div class="header-right">{{this.city}}<span class="iconfont">&#xe6aa;</span></div>
 </div>
</template>
<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .header
    display:flex
    background:$bgColor
    line-height:.86rem
    color:#fff
    .header-left
      margin-left:.1rem
      float:left
      width: .64rem
    .header-input
      flex:1
      background:#fff
      border-radius: .1rem
      margin-top: .12rem
      margin-left: .2rem
      height: .62rem
      color:#eeeeee
      line-height:.62rem
      padding-left:.2rem
    .header-right
      float:right
      width: 1.24rem
      text-align:center
</style>
